package job

// ListNode Definition for singly-linked list.
type ListNode struct {
	Val  int
	Next *ListNode
}

func GetNode(vals []int) *ListNode {
	head := &ListNode{}
	p := head
	for i := 0; i < len(vals); i++ {
		p.Next = &ListNode{vals[i], nil}
		p = p.Next
	}
	return head.Next
}
